﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace APNS.NET
{
    internal class NotificationWithHistory : ApnsNotification
    {

        private ApnsNotification internalNotification;

        public NotificationWithHistory(ApnsNotification internalNotification)
        {
            this.internalNotification = internalNotification;
            this.ResultHistory = new List<SendResult>();
        }

        public override DeviceToken DeviceToken
        {
            get { return internalNotification.DeviceToken; }
            set { internalNotification.DeviceToken = value; }
        }

        public override DateTime Expiry
        {
            get { return internalNotification.Expiry; }
            set { internalNotification.Expiry = value; }
        }

        public override NotificationPayload NotificationPayload
        {
            get { return internalNotification.NotificationPayload; }
            set { internalNotification.NotificationPayload = value; }
        }

        public ApnsNotification InternalNotification
        {
            get { return internalNotification; }
        }

        public int SendAttempts { get; set; }
        public IList<SendResult> ResultHistory { get; private set; }
        public bool Abandoned { get; set; }
       

    }
}
